package com.shensi.api.pay.client;

import com.alibaba.fastjson.JSONObject;
import com.shensi.common.core.constant.CloudConstant;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Api(tags = "支付回调")
@FeignClient(name = CloudConstant.PAY_SERVER, path = "/notify")
public interface NotifyClient {


    /**
     * 被扫支付回调
     *
     * @param request
     * @param response
     */
    @PostMapping("/tradeReverseScanPayNotify")
    @ResponseBody
    public JSONObject tradeReverseScanPayNotify(@RequestParam("request")HttpServletRequest request,@RequestParam("response") HttpServletResponse response);


}
